package com.fcscs.cservice.client.common.controller;

import com.fcscs.core.gwt.common.AsyncCallbackListener;
import com.fcscs.core.gwt.common.GWTAsyncCaller;
import com.fcscs.cservice.domain.model.GuestProfileView;
import com.fcscs.cservice.gwt.client.GuestProfileService;
import com.fcscs.cservice.gwt.client.GuestProfileServiceAsync;
import com.google.gwt.core.client.GWT;

public class GuestProfileServiceController extends GWTAsyncCaller {
	private static GuestProfileServiceController INSTANCE = new GuestProfileServiceController();
    private GuestProfileServiceAsync guestProfileServiceGWT = GWT.create(GuestProfileService.class);
    
    public static GuestProfileServiceController getINSTANCE(){
    	return INSTANCE;
    } 
    
    private GuestProfileServiceController(){
    }
    
    public void getGuestProfileView(long id, AsyncCallbackListener<GuestProfileView> callback){
    	guestProfileServiceGWT.getGuestProfileView(id, createCallBack(0, callback));
    }
    
    public void updateGuestProfileView(GuestProfileView gpView, AsyncCallbackListener<GuestProfileView> callback){
    	guestProfileServiceGWT.updateGuestProfileView(gpView, createCallBack(0, callback));
    }
}
